//
//  XMTabBar.h
//  XMWeibo
//
//  Created by chi on 14-8-19.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import <UIKit/UIKit.h>

//点击tabbarbutton后调用该代理方法
@protocol XMTabBarDelegate <NSObject>

/**
 *  tab切换
 */
- (void)selectTabBarFrom:(NSUInteger)from To:(NSUInteger)to;

/** 点击加号按钮 */
- (void)clickNewWeibboButton;

@end

@interface XMTabBar : UIView

/** 添加tabbarbutton */
- (void)addTabBarButtonWithItem:(UITabBarItem*)item;


/** 代理 */
@property(nonatomic, assign) id<XMTabBarDelegate> delegate;

@end
